package com.cybertron.ironhide.manage.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Product;

public interface ProductMapper {
	int deleteByPrimaryKey(String id);

	int insert(Product record);

	int insertSelective(Product record);

	Product selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Product record);

	int updateByPrimaryKeyWithBLOBs(Product record);

	int updateByPrimaryKey(Product record);

	Product selectByTargetUrl(String targetUrl);

	List<Product> selectBySelective(Product product, Pager pager);

	void updateGroupIdById(String groupId);

	void deleteBySeedIdAndMaxCount(@Param("seedId") String seedId,
			@Param("seedMaxCount") Integer seedMaxCount);

	List<String> selectSeedIdByMax(Integer seedMaxCount);

}